package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.entity.SysTenant;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.system.domain.vo.SysTenantVo;
import org.apache.ibatis.annotations.Param;

/**
 * 租户Mapper接口
 *
 * @author ace
 * @date 2022-10-10
 */
public interface SysTenantMapper extends BaseMapperPlus<SysTenantMapper, SysTenant, SysTenantVo> {

    /**
     * 获取租户列表
     * @param queryWrapper 查询条件
     * @return 结果
     */
    Page<SysTenant> selectTenantList(@Param("page") Page<SysUser> page, @Param(Constants.WRAPPER) Wrapper<SysTenant> queryWrapper);

}
